
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>5分钟了解TypeScript · TypeScript Handbook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Patrick Zhong">
        
        
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="ASP.NET Core.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    快速上手
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="TypeScript in 5 minutes.html">
            
                <a href="TypeScript in 5 minutes.html">
            
                    
                    5分钟了解TypeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="ASP.NET Core.html">
            
                <a href="ASP.NET Core.html">
            
                    
                    ASP.NET Core
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="ASP.NET 4.html">
            
                <a href="ASP.NET 4.html">
            
                    
                    ASP.NET 4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="Gulp.html">
            
                <a href="Gulp.html">
            
                    
                    Gulp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="Knockout.html">
            
                <a href="Knockout.html">
            
                    
                    Knockout.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="React & Webpack.html">
            
                <a href="React & Webpack.html">
            
                    
                    React与webpack
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="React.html">
            
                <a href="React.html">
            
                    
                    React
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="Angular 2.html">
            
                <a href="Angular 2.html">
            
                    
                    Angular 2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="Migrating from JavaScript.html">
            
                <a href="Migrating from JavaScript.html">
            
                    
                    从JavaScript迁移到TypeScript
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../">
            
                <a href="../">
            
                    
                    手册
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Basic Types.html">
            
                <a href="../Basic Types.html">
            
                    
                    基础类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Variable Declarations.html">
            
                <a href="../Variable Declarations.html">
            
                    
                    变量声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Interfaces.html">
            
                <a href="../Interfaces.html">
            
                    
                    接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../Classes.html">
            
                <a href="../Classes.html">
            
                    
                    类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../Functions.html">
            
                <a href="../Functions.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../Generics.html">
            
                <a href="../Generics.html">
            
                    
                    泛型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../Enums.html">
            
                <a href="../Enums.html">
            
                    
                    枚举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../Type Inference.html">
            
                <a href="../Type Inference.html">
            
                    
                    类型推论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../Type Compatibility.html">
            
                <a href="../Type Compatibility.html">
            
                    
                    类型兼容性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../Advanced Types.html">
            
                <a href="../Advanced Types.html">
            
                    
                    高级类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../Utilit Types.md">
            
                <span>
            
                    
                    实用工具类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../Symbols.html">
            
                <a href="../Symbols.html">
            
                    
                    Symbols
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../Iterators and Generators.html">
            
                <a href="../Iterators and Generators.html">
            
                    
                    Iterators 和 Generators
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="../Modules.html">
            
                <a href="../Modules.html">
            
                    
                    模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.15" data-path="../Namespaces.html">
            
                <a href="../Namespaces.html">
            
                    
                    命名空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.16" data-path="../Namespaces and Modules.html">
            
                <a href="../Namespaces and Modules.html">
            
                    
                    命名空间和模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.17" data-path="../Module Resolution.html">
            
                <a href="../Module Resolution.html">
            
                    
                    模块解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.18" data-path="../Declaration Merging.html">
            
                <a href="../Declaration Merging.html">
            
                    
                    声明合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.19" data-path="../Writing Definition Files.html">
            
                <a href="../Writing Definition Files.html">
            
                    
                    书写.d.ts文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.20" data-path="../JSX.html">
            
                <a href="../JSX.html">
            
                    
                    JSX
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.21" data-path="../Decorators.html">
            
                <a href="../Decorators.html">
            
                    
                    Decorators
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.22" data-path="../Mixins.html">
            
                <a href="../Mixins.html">
            
                    
                    混入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.23" data-path="../Triple-Slash Directives.html">
            
                <a href="../Triple-Slash Directives.html">
            
                    
                    三斜线指令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.24" data-path="../Type Checking JavaScript Files.html">
            
                <a href="../Type Checking JavaScript Files.html">
            
                    
                    JavaScript文件里的类型检查
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../declaration files/Introduction.html">
            
                <a href="../declaration files/Introduction.html">
            
                    
                    如何书写声明文件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../declaration files/Library Structures.html">
            
                <a href="../declaration files/Library Structures.html">
            
                    
                    结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../declaration files/Do's and Don'ts.html">
            
                <a href="../declaration files/Do's and Don'ts.html">
            
                    
                    规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../declaration files/By Example.html">
            
                <a href="../declaration files/By Example.html">
            
                    
                    举例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../declaration files/Deep Dive.html">
            
                <a href="../declaration files/Deep Dive.html">
            
                    
                    深入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../declaration files/Publishing.html">
            
                <a href="../declaration files/Publishing.html">
            
                    
                    发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../declaration files/Consumption.html">
            
                <a href="../declaration files/Consumption.html">
            
                    
                    使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../tsconfig.json.html">
            
                <a href="../tsconfig.json.html">
            
                    
                    工程配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../tsconfig.json.html">
            
                <a href="../tsconfig.json.html">
            
                    
                    tsconfig.json
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Project References.html">
            
                <a href="../Project References.html">
            
                    
                    工程引用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../Typings for NPM Packages.html">
            
                <a href="../Typings for NPM Packages.html">
            
                    
                    NPM包的类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../Compiler Options.html">
            
                <a href="../Compiler Options.html">
            
                    
                    编译选项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../Configuring Watch.html">
            
                <a href="../Configuring Watch.html">
            
                    
                    配置 Watch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../Compiler Options in MSBuild.html">
            
                <a href="../Compiler Options in MSBuild.html">
            
                    
                    在MSBuild里使用编译选项
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../Integrating with Build Tools.html">
            
                <a href="../Integrating with Build Tools.html">
            
                    
                    与其它构建工具整合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../Nightly Builds.html">
            
                <a href="../Nightly Builds.html">
            
                    
                    使用TypeScript的每日构建版本
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../wiki/">
            
                <a href="../../wiki/">
            
                    
                    Wiki
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../wiki/this-in-TypeScript.html">
            
                <a href="../../wiki/this-in-TypeScript.html">
            
                    
                    TypeScript里的this
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../wiki/coding_guidelines.html">
            
                <a href="../../wiki/coding_guidelines.html">
            
                    
                    编码规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../wiki/Common Errors.html">
            
                <a href="../../wiki/Common Errors.html">
            
                    
                    常见编译错误
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../wiki/TypeScript-Editor-Support.html">
            
                <a href="../../wiki/TypeScript-Editor-Support.html">
            
                    
                    支持TypeScript的编辑器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../wiki/Using-TypeScript-With-ASP.NET-5.html">
            
                <a href="../../wiki/Using-TypeScript-With-ASP.NET-5.html">
            
                    
                    结合ASP.NET v5使用TypeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../wiki/Architectural-Overview.html">
            
                <a href="../../wiki/Architectural-Overview.html">
            
                    
                    架构概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../wiki/Roadmap.html">
            
                <a href="../../wiki/Roadmap.html">
            
                    
                    发展路线图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../release-notes/">
            
                <a href="../../release-notes/">
            
                    
                    新增功能
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../release-notes/TypeScript 3.1.html">
            
                <a href="../../release-notes/TypeScript 3.1.html">
            
                    
                    TypeScript 3.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../release-notes/TypeScript 3.0.html">
            
                <a href="../../release-notes/TypeScript 3.0.html">
            
                    
                    TypeScript 3.0
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../release-notes/TypeScript 2.9.html">
            
                <a href="../../release-notes/TypeScript 2.9.html">
            
                    
                    TypeScript 2.9
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../release-notes/TypeScript 2.8.html">
            
                <a href="../../release-notes/TypeScript 2.8.html">
            
                    
                    TypeScript 2.8
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../../release-notes/TypeScript 2.7.html">
            
                <a href="../../release-notes/TypeScript 2.7.html">
            
                    
                    TypeScript 2.7
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../../release-notes/TypeScript 2.6.html">
            
                <a href="../../release-notes/TypeScript 2.6.html">
            
                    
                    TypeScript 2.6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../../release-notes/TypeScript 2.5.html">
            
                <a href="../../release-notes/TypeScript 2.5.html">
            
                    
                    TypeScript 2.5
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="../../release-notes/TypeScript 2.4.html">
            
                <a href="../../release-notes/TypeScript 2.4.html">
            
                    
                    TypeScript 2.4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="../../release-notes/TypeScript 2.3.html">
            
                <a href="../../release-notes/TypeScript 2.3.html">
            
                    
                    TypeScript 2.3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.10" data-path="../../release-notes/TypeScript 2.2.html">
            
                <a href="../../release-notes/TypeScript 2.2.html">
            
                    
                    TypeScript 2.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.11" data-path="../../release-notes/TypeScript 2.1.html">
            
                <a href="../../release-notes/TypeScript 2.1.html">
            
                    
                    TypeScript 2.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.12" data-path="../../release-notes/TypeScript 2.0.html">
            
                <a href="../../release-notes/TypeScript 2.0.html">
            
                    
                    TypeScript 2.0
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.13" data-path="../../release-notes/TypeScript 1.8.html">
            
                <a href="../../release-notes/TypeScript 1.8.html">
            
                    
                    TypeScript 1.8
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.14" data-path="../../release-notes/TypeScript 1.7.html">
            
                <a href="../../release-notes/TypeScript 1.7.html">
            
                    
                    TypeScript 1.7
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.15" data-path="../../release-notes/TypeScript 1.6.html">
            
                <a href="../../release-notes/TypeScript 1.6.html">
            
                    
                    TypeScript 1.6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.16" data-path="../../release-notes/TypeScript 1.5.html">
            
                <a href="../../release-notes/TypeScript 1.5.html">
            
                    
                    TypeScript 1.5
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.17" data-path="../../release-notes/TypeScript 1.4.html">
            
                <a href="../../release-notes/TypeScript 1.4.html">
            
                    
                    TypeScript 1.4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.18" data-path="../../release-notes/TypeScript 1.3.html">
            
                <a href="../../release-notes/TypeScript 1.3.html">
            
                    
                    TypeScript 1.3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.19" data-path="../../release-notes/TypeScript 1.1.html">
            
                <a href="../../release-notes/TypeScript 1.1.html">
            
                    
                    TypeScript 1.1
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../breaking-changes/breaking-changes.html">
            
                <a href="../../breaking-changes/breaking-changes.html">
            
                    
                    Breaking Changes
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../breaking-changes/TypeScript 2.4.html">
            
                <a href="../../breaking-changes/TypeScript 2.4.html">
            
                    
                    TypeScript 2.4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../breaking-changes/TypeScript 2.3.html">
            
                <a href="../../breaking-changes/TypeScript 2.3.html">
            
                    
                    TypeScript 2.3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../breaking-changes/TypeScript 2.2.html">
            
                <a href="../../breaking-changes/TypeScript 2.2.html">
            
                    
                    TypeScript 2.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../../breaking-changes/TypeScript 2.1.html">
            
                <a href="../../breaking-changes/TypeScript 2.1.html">
            
                    
                    TypeScript 2.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../../breaking-changes/TypeScript 2.0.html">
            
                <a href="../../breaking-changes/TypeScript 2.0.html">
            
                    
                    TypeScript 2.0
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="../../breaking-changes/TypeScript 1.8.html">
            
                <a href="../../breaking-changes/TypeScript 1.8.html">
            
                    
                    TypeScript 1.8
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="../../breaking-changes/TypeScript 1.7.html">
            
                <a href="../../breaking-changes/TypeScript 1.7.html">
            
                    
                    TypeScript 1.7
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="../../breaking-changes/TypeScript 1.6.html">
            
                <a href="../../breaking-changes/TypeScript 1.6.html">
            
                    
                    TypeScript 1.6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.9" data-path="../../breaking-changes/TypeScript 1.5.html">
            
                <a href="../../breaking-changes/TypeScript 1.5.html">
            
                    
                    TypeScript 1.5
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.10" data-path="../../breaking-changes/TypeScript 1.4.html">
            
                <a href="../../breaking-changes/TypeScript 1.4.html">
            
                    
                    TypeScript 1.4
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >5分钟了解TypeScript</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>&#x8BA9;&#x6211;&#x4EEC;&#x4F7F;&#x7528;TypeScript&#x6765;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;Web&#x5E94;&#x7528;&#x3002;</p>
<h2 id="&#x5B89;&#x88C5;typescript">&#x5B89;&#x88C5;TypeScript</h2>
<p>&#x6709;&#x4E24;&#x79CD;&#x4E3B;&#x8981;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x83B7;&#x53D6;TypeScript&#x5DE5;&#x5177;&#xFF1A;</p>
<ul>
<li>&#x901A;&#x8FC7;npm&#xFF08;Node.js&#x5305;&#x7BA1;&#x7406;&#x5668;&#xFF09;</li>
<li>&#x5B89;&#x88C5;Visual Studio&#x7684;TypeScript&#x63D2;&#x4EF6;</li>
</ul>
<p>Visual Studio 2017&#x548C;Visual Studio 2015 Update 3&#x9ED8;&#x8BA4;&#x5305;&#x542B;&#x4E86;TypeScript&#x3002;
&#x5982;&#x679C;&#x4F60;&#x7684;Visual Studio&#x8FD8;&#x6CA1;&#x6709;&#x5B89;&#x88C5;TypeScript&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;<a href="../../..#download-links">&#x4E0B;&#x8F7D;</a>&#x5B83;&#x3002;</p>
<p>&#x9488;&#x5BF9;&#x4F7F;&#x7528;npm&#x7684;&#x7528;&#x6237;&#xFF1A;</p>
<pre><code class="lang-shell">&gt; npm install -g typescript
</code></pre>
<h2 id="&#x6784;&#x5EFA;&#x4F60;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;typescript&#x6587;&#x4EF6;">&#x6784;&#x5EFA;&#x4F60;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;TypeScript&#x6587;&#x4EF6;</h2>
<p>&#x5728;&#x7F16;&#x8F91;&#x5668;&#xFF0C;&#x5C06;&#x4E0B;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x8F93;&#x5165;&#x5230;<code>greeter.ts</code>&#x6587;&#x4EF6;&#x91CC;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">greeter</span>(<span class="hljs-params">person</span>) </span>{
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;Hello, &quot;</span> + person;
}

<span class="hljs-keyword">let</span> user = <span class="hljs-string">&quot;Jane User&quot;</span>;

<span class="hljs-built_in">document</span>.body.innerHTML = greeter(user);
</code></pre>
<h2 id="&#x7F16;&#x8BD1;&#x4EE3;&#x7801;">&#x7F16;&#x8BD1;&#x4EE3;&#x7801;</h2>
<p>&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x4E86;<code>.ts</code>&#x6269;&#x5C55;&#x540D;&#xFF0C;&#x4F46;&#x662F;&#x8FD9;&#x6BB5;&#x4EE3;&#x7801;&#x4EC5;&#x4EC5;&#x662F;JavaScript&#x800C;&#x5DF2;&#x3002;
&#x4F60;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4ECE;&#x73B0;&#x6709;&#x7684;JavaScript&#x5E94;&#x7528;&#x91CC;&#x590D;&#x5236;/&#x7C98;&#x8D34;&#x8FD9;&#x6BB5;&#x4EE3;&#x7801;&#x3002;</p>
<p>&#x5728;&#x547D;&#x4EE4;&#x884C;&#x4E0A;&#xFF0C;&#x8FD0;&#x884C;TypeScript&#x7F16;&#x8BD1;&#x5668;&#xFF1A;</p>
<pre><code class="lang-shell">tsc greeter.ts
</code></pre>
<p>&#x8F93;&#x51FA;&#x7ED3;&#x679C;&#x4E3A;&#x4E00;&#x4E2A;<code>greeter.js</code>&#x6587;&#x4EF6;&#xFF0C;&#x5B83;&#x5305;&#x542B;&#x4E86;&#x548C;&#x8F93;&#x5165;&#x6587;&#x4EF6;&#x4E2D;&#x76F8;&#x540C;&#x7684;JavsScript&#x4EE3;&#x7801;&#x3002;
&#x4E00;&#x5207;&#x51C6;&#x5907;&#x5C31;&#x7EEA;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#x8FD9;&#x4E2A;&#x4F7F;&#x7528;TypeScript&#x5199;&#x7684;JavaScript&#x5E94;&#x7528;&#x4E86;&#xFF01;</p>
<p>&#x63A5;&#x4E0B;&#x6765;&#x8BA9;&#x6211;&#x4EEC;&#x770B;&#x770B;TypeScript&#x5DE5;&#x5177;&#x5E26;&#x6765;&#x7684;&#x9AD8;&#x7EA7;&#x529F;&#x80FD;&#x3002;
&#x7ED9;<code>person</code>&#x51FD;&#x6570;&#x7684;&#x53C2;&#x6570;&#x6DFB;&#x52A0;<code>: string</code>&#x7C7B;&#x578B;&#x6CE8;&#x89E3;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">greeter</span>(<span class="hljs-params">person: <span class="hljs-built_in">string</span></span>) </span>{
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;Hello, &quot;</span> + person;
}

<span class="hljs-keyword">let</span> user = <span class="hljs-string">&quot;Jane User&quot;</span>;

<span class="hljs-built_in">document</span>.body.innerHTML = greeter(user);
</code></pre>
<h2 id="&#x7C7B;&#x578B;&#x6CE8;&#x89E3;">&#x7C7B;&#x578B;&#x6CE8;&#x89E3;</h2>
<p>TypeScript&#x91CC;&#x7684;&#x7C7B;&#x578B;&#x6CE8;&#x89E3;&#x662F;&#x4E00;&#x79CD;&#x8F7B;&#x91CF;&#x7EA7;&#x7684;&#x4E3A;&#x51FD;&#x6570;&#x6216;&#x53D8;&#x91CF;&#x6DFB;&#x52A0;&#x7EA6;&#x675F;&#x7684;&#x65B9;&#x5F0F;&#x3002;
&#x5728;&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x91CC;&#xFF0C;&#x6211;&#x4EEC;&#x5E0C;&#x671B;<code>greeter</code>&#x51FD;&#x6570;&#x63A5;&#x6536;&#x4E00;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;&#x53C2;&#x6570;&#x3002;
&#x7136;&#x540E;&#x5C1D;&#x8BD5;&#x628A;<code>greeter</code>&#x7684;&#x8C03;&#x7528;&#x6539;&#x6210;&#x4F20;&#x5165;&#x4E00;&#x4E2A;&#x6570;&#x7EC4;&#xFF1A;</p>
<pre><code class="lang-ts"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">greeter</span>(<span class="hljs-params">person: <span class="hljs-built_in">string</span></span>) </span>{
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;Hello, &quot;</span> + person;
}

<span class="hljs-keyword">let</span> user = [<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>];

<span class="hljs-built_in">document</span>.body.innerHTML = greeter(user);
</code></pre>
<p>&#x91CD;&#x65B0;&#x7F16;&#x8BD1;&#xFF0C;&#x4F60;&#x4F1A;&#x770B;&#x5230;&#x4EA7;&#x751F;&#x4E86;&#x4E00;&#x4E2A;&#x9519;&#x8BEF;&#x3002;</p>
<pre><code class="lang-shell">error TS2345: Argument of type &apos;number[]&apos; is not assignable to parameter of type &apos;string&apos;.
</code></pre>
<p>&#x7C7B;&#x4F3C;&#x5730;&#xFF0C;&#x5C1D;&#x8BD5;&#x5220;&#x9664;<code>greeter</code>&#x8C03;&#x7528;&#x7684;&#x6240;&#x6709;&#x53C2;&#x6570;&#x3002;
TypeScript&#x4F1A;&#x544A;&#x8BC9;&#x4F60;&#x4F7F;&#x7528;&#x4E86;&#x975E;&#x671F;&#x671B;&#x4E2A;&#x6570;&#x7684;&#x53C2;&#x6570;&#x8C03;&#x7528;&#x4E86;&#x8FD9;&#x4E2A;&#x51FD;&#x6570;&#x3002;
&#x5728;&#x8FD9;&#x4E24;&#x79CD;&#x60C5;&#x51B5;&#x4E2D;&#xFF0C;TypeScript&#x63D0;&#x4F9B;&#x4E86;&#x9759;&#x6001;&#x7684;&#x4EE3;&#x7801;&#x5206;&#x6790;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x5206;&#x6790;&#x4EE3;&#x7801;&#x7ED3;&#x6784;&#x548C;&#x63D0;&#x4F9B;&#x7684;&#x7C7B;&#x578B;&#x6CE8;&#x89E3;&#x3002;</p>
<p>&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#x5C3D;&#x7BA1;&#x6709;&#x9519;&#x8BEF;&#xFF0C;<code>greeter.js</code>&#x6587;&#x4EF6;&#x8FD8;&#x662F;&#x88AB;&#x521B;&#x5EFA;&#x4E86;&#x3002;
&#x5C31;&#x7B97;&#x4F60;&#x7684;&#x4EE3;&#x7801;&#x91CC;&#x6709;&#x9519;&#x8BEF;&#xFF0C;&#x4F60;&#x4ECD;&#x7136;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;TypeScript&#x3002;&#x4F46;&#x5728;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;TypeScript&#x4F1A;&#x8B66;&#x544A;&#x4F60;&#x4EE3;&#x7801;&#x53EF;&#x80FD;&#x4E0D;&#x4F1A;&#x6309;&#x9884;&#x671F;&#x6267;&#x884C;&#x3002;</p>
<h2 id="&#x63A5;&#x53E3;">&#x63A5;&#x53E3;</h2>
<p>&#x8BA9;&#x6211;&#x4EEC;&#x5F00;&#x53D1;&#x8FD9;&#x4E2A;&#x793A;&#x4F8B;&#x5E94;&#x7528;&#x3002;&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x63A5;&#x53E3;&#x6765;&#x63CF;&#x8FF0;&#x4E00;&#x4E2A;&#x62E5;&#x6709;<code>firstName</code>&#x548C;<code>lastName</code>&#x5B57;&#x6BB5;&#x7684;&#x5BF9;&#x8C61;&#x3002;
&#x5728;TypeScript&#x91CC;&#xFF0C;&#x53EA;&#x5728;&#x4E24;&#x4E2A;&#x7C7B;&#x578B;&#x5185;&#x90E8;&#x7684;&#x7ED3;&#x6784;&#x517C;&#x5BB9;&#x90A3;&#x4E48;&#x8FD9;&#x4E24;&#x4E2A;&#x7C7B;&#x578B;&#x5C31;&#x662F;&#x517C;&#x5BB9;&#x7684;&#x3002;
&#x8FD9;&#x5C31;&#x5141;&#x8BB8;&#x6211;&#x4EEC;&#x5728;&#x5B9E;&#x73B0;&#x63A5;&#x53E3;&#x65F6;&#x5019;&#x53EA;&#x8981;&#x4FDD;&#x8BC1;&#x5305;&#x542B;&#x4E86;&#x63A5;&#x53E3;&#x8981;&#x6C42;&#x7684;&#x7ED3;&#x6784;&#x5C31;&#x53EF;&#x4EE5;&#xFF0C;&#x800C;&#x4E0D;&#x5FC5;&#x660E;&#x786E;&#x5730;&#x4F7F;&#x7528;<code>implements</code>&#x8BED;&#x53E5;&#x3002;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">interface</span> Person {
    firstName: <span class="hljs-built_in">string</span>;
    lastName: <span class="hljs-built_in">string</span>;
}

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">greeter</span>(<span class="hljs-params">person: Person</span>) </span>{
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;Hello, &quot;</span> + person.firstName + <span class="hljs-string">&quot; &quot;</span> + person.lastName;
}

<span class="hljs-keyword">let</span> user = { firstName: <span class="hljs-string">&quot;Jane&quot;</span>, lastName: <span class="hljs-string">&quot;User&quot;</span> };

<span class="hljs-built_in">document</span>.body.innerHTML = greeter(user);
</code></pre>
<h2 id="&#x7C7B;">&#x7C7B;</h2>
<p>&#x6700;&#x540E;&#xFF0C;&#x8BA9;&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x7C7B;&#x6765;&#x6539;&#x5199;&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x3002;
TypeScript&#x652F;&#x6301;JavaScript&#x7684;&#x65B0;&#x7279;&#x6027;&#xFF0C;&#x6BD4;&#x5982;&#x652F;&#x6301;&#x57FA;&#x4E8E;&#x7C7B;&#x7684;&#x9762;&#x5411;&#x5BF9;&#x8C61;&#x7F16;&#x7A0B;&#x3002;</p>
<p>&#x8BA9;&#x6211;&#x4EEC;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;<code>Student</code>&#x7C7B;&#xFF0C;&#x5B83;&#x5E26;&#x6709;&#x4E00;&#x4E2A;&#x6784;&#x9020;&#x51FD;&#x6570;&#x548C;&#x4E00;&#x4E9B;&#x516C;&#x5171;&#x5B57;&#x6BB5;&#x3002;
&#x6CE8;&#x610F;&#x7C7B;&#x548C;&#x63A5;&#x53E3;&#x53EF;&#x4EE5;&#x4E00;&#x8D77;&#x5171;&#x4F5C;&#xFF0C;&#x7A0B;&#x5E8F;&#x5458;&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x51B3;&#x5B9A;&#x62BD;&#x8C61;&#x7684;&#x7EA7;&#x522B;&#x3002;</p>
<p>&#x8FD8;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;&#x5728;&#x6784;&#x9020;&#x51FD;&#x6570;&#x7684;&#x53C2;&#x6570;&#x4E0A;&#x4F7F;&#x7528;<code>public</code>&#x7B49;&#x540C;&#x4E8E;&#x521B;&#x5EFA;&#x4E86;&#x540C;&#x540D;&#x7684;&#x6210;&#x5458;&#x53D8;&#x91CF;&#x3002;</p>
<pre><code class="lang-ts"><span class="hljs-keyword">class</span> Student {
    fullName: <span class="hljs-built_in">string</span>;
    <span class="hljs-keyword">constructor</span>(public firstName: string, public middleInitial: string, public lastName: string) {
        <span class="hljs-keyword">this</span>.fullName = firstName + <span class="hljs-string">&quot; &quot;</span> + middleInitial + <span class="hljs-string">&quot; &quot;</span> + lastName;
    }
}

<span class="hljs-keyword">interface</span> Person {
    firstName: <span class="hljs-built_in">string</span>;
    lastName: <span class="hljs-built_in">string</span>;
}

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">greeter</span>(<span class="hljs-params">person : Person</span>) </span>{
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;Hello, &quot;</span> + person.firstName + <span class="hljs-string">&quot; &quot;</span> + person.lastName;
}

<span class="hljs-keyword">let</span> user = <span class="hljs-keyword">new</span> Student(<span class="hljs-string">&quot;Jane&quot;</span>, <span class="hljs-string">&quot;M.&quot;</span>, <span class="hljs-string">&quot;User&quot;</span>);

<span class="hljs-built_in">document</span>.body.innerHTML = greeter(user);
</code></pre>
<p>&#x91CD;&#x65B0;&#x8FD0;&#x884C;<code>tsc greeter.ts</code>&#xFF0C;&#x4F60;&#x4F1A;&#x770B;&#x5230;&#x751F;&#x6210;&#x7684;JavaScript&#x4EE3;&#x7801;&#x548C;&#x539F;&#x5148;&#x7684;&#x4E00;&#x6837;&#x3002;
TypeScript&#x91CC;&#x7684;&#x7C7B;&#x53EA;&#x662F;JavaScript&#x91CC;&#x5E38;&#x7528;&#x7684;&#x57FA;&#x4E8E;&#x539F;&#x578B;&#x9762;&#x5411;&#x5BF9;&#x8C61;&#x7F16;&#x7A0B;&#x7684;&#x7B80;&#x5199;&#x3002;</p>
<h2 id="&#x8FD0;&#x884C;typescript-web&#x5E94;&#x7528;">&#x8FD0;&#x884C;TypeScript Web&#x5E94;&#x7528;</h2>
<p>&#x5728;<code>greeter.html</code>&#x91CC;&#x8F93;&#x5165;&#x5982;&#x4E0B;&#x5185;&#x5BB9;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>TypeScript Greeter<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;greeter.js&quot;</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<p>&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x91CC;&#x6253;&#x5F00;<code>greeter.html</code>&#x8FD0;&#x884C;&#x8FD9;&#x4E2A;&#x5E94;&#x7528;&#xFF01;</p>
<p>&#x53EF;&#x9009;&#x5730;&#xFF1A;&#x5728;Visual Studio&#x91CC;&#x6253;&#x5F00;<code>greeter.ts</code>&#x6216;&#x8005;&#x628A;&#x4EE3;&#x7801;&#x590D;&#x5236;&#x5230;TypeScript playground&#x3002;
&#x5C06;&#x9F20;&#x6807;&#x60AC;&#x505C;&#x5728;&#x6807;&#x8BC6;&#x7B26;&#x4E0A;&#x67E5;&#x770B;&#x5B83;&#x4EEC;&#x7684;&#x7C7B;&#x578B;&#x3002;
&#x6CE8;&#x610F;&#x5728;&#x67D0;&#x4E9B;&#x60C5;&#x51B5;&#x4E0B;&#x5B83;&#x4EEC;&#x7684;&#x7C7B;&#x578B;&#x53EF;&#x4EE5;&#x88AB;&#x81EA;&#x52A8;&#x5730;&#x63A8;&#x65AD;&#x51FA;&#x6765;&#x3002;
&#x91CD;&#x65B0;&#x8F93;&#x5165;&#x4E00;&#x4E0B;&#x6700;&#x540E;&#x4E00;&#x884C;&#x4EE3;&#x7801;&#xFF0C;&#x770B;&#x4E00;&#x4E0B;&#x81EA;&#x52A8;&#x8865;&#x5168;&#x5217;&#x8868;&#x548C;&#x53C2;&#x6570;&#x5217;&#x8868;&#xFF0C;&#x5B83;&#x4EEC;&#x4F1A;&#x6839;&#x636E;DOM&#x5143;&#x7D20;&#x7C7B;&#x578B;&#x800C;&#x53D8;&#x5316;&#x3002;
&#x5C06;&#x5149;&#x6807;&#x653E;&#x5728;<code>greeter</code>&#x51FD;&#x6570;&#x4E0A;&#xFF0C;&#x70B9;&#x51FB;F12&#x53EF;&#x4EE5;&#x8DDF;&#x8E2A;&#x5230;&#x5B83;&#x7684;&#x5B9A;&#x4E49;&#x3002;
&#x8FD8;&#x6709;&#x4E00;&#x70B9;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x53F3;&#x952E;&#x70B9;&#x51FB;&#x6807;&#x8BC6;&#xFF0C;&#x4F7F;&#x7528;&#x91CD;&#x6784;&#x529F;&#x80FD;&#x6765;&#x91CD;&#x547D;&#x540D;&#x3002;</p>
<p>&#x8FD9;&#x4E9B;&#x7C7B;&#x578B;&#x4FE1;&#x606F;&#x4EE5;&#x53CA;&#x5DE5;&#x5177;&#x53EF;&#x4EE5;&#x5F88;&#x597D;&#x7684;&#x548C;JavaScript&#x4E00;&#x8D77;&#x5DE5;&#x4F5C;&#x3002;
&#x66F4;&#x591A;&#x7684;TypeScript&#x529F;&#x80FD;&#x6F14;&#x793A;&#xFF0C;&#x8BF7;&#x67E5;&#x770B;&#x672C;&#x7F51;&#x7AD9;&#x7684;&#x793A;&#x4F8B;&#x90E8;&#x5206;&#x3002;</p>
<!--![Visual Studio picture](/assets/images/docs/greet_person.png)-->

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 快速上手">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="ASP.NET Core.html" class="navigation navigation-next " aria-label="Next page: ASP.NET Core">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"5分钟了解TypeScript","level":"1.2.1","depth":2,"next":{"title":"ASP.NET Core","level":"1.2.2","depth":2,"path":"doc/handbook/tutorials/ASP.NET Core.md","ref":"./doc/handbook/tutorials/ASP.NET Core.md","articles":[]},"previous":{"title":"快速上手","level":"1.2","depth":1,"path":"doc/handbook/tutorials/README.md","ref":"./doc/handbook/tutorials/README.md","articles":[{"title":"5分钟了解TypeScript","level":"1.2.1","depth":2,"path":"doc/handbook/tutorials/TypeScript in 5 minutes.md","ref":"./doc/handbook/tutorials/TypeScript in 5 minutes.md","articles":[]},{"title":"ASP.NET Core","level":"1.2.2","depth":2,"path":"doc/handbook/tutorials/ASP.NET Core.md","ref":"./doc/handbook/tutorials/ASP.NET Core.md","articles":[]},{"title":"ASP.NET 4","level":"1.2.3","depth":2,"path":"doc/handbook/tutorials/ASP.NET 4.md","ref":"./doc/handbook/tutorials/ASP.NET 4.md","articles":[]},{"title":"Gulp","level":"1.2.4","depth":2,"path":"doc/handbook/tutorials/Gulp.md","ref":"./doc/handbook/tutorials/Gulp.md","articles":[]},{"title":"Knockout.js","level":"1.2.5","depth":2,"path":"doc/handbook/tutorials/Knockout.md","ref":"./doc/handbook/tutorials/Knockout.md","articles":[]},{"title":"React与webpack","level":"1.2.6","depth":2,"path":"doc/handbook/tutorials/React & Webpack.md","ref":"./doc/handbook/tutorials/React & Webpack.md","articles":[]},{"title":"React","level":"1.2.7","depth":2,"path":"doc/handbook/tutorials/React.md","ref":"./doc/handbook/tutorials/React.md","articles":[]},{"title":"Angular 2","level":"1.2.8","depth":2,"path":"doc/handbook/tutorials/Angular 2.md","ref":"./doc/handbook/tutorials/Angular 2.md","articles":[]},{"title":"从JavaScript迁移到TypeScript","level":"1.2.9","depth":2,"path":"doc/handbook/tutorials/Migrating from JavaScript.md","ref":"./doc/handbook/tutorials/Migrating from JavaScript.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Patrick Zhong","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"preface.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"TypeScript Handbook","language":"zh-hans","gitbook":">3.0.0","description":"Translation of official TypeScript Handbook"},"file":{"path":"doc/handbook/tutorials/TypeScript in 5 minutes.md","mtime":"2018-10-13T09:48:54.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-13T09:57:42.904Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

